<script type="text/javascript" src="./public/ext/jqprint/jquery-migrate.js"></script>
<script type="text/javascript" src="./public/ext/jqprint/jquery.jqprint.js"></script>
<div class="mar_bot" id="customer_info">
    <div class="title" style="width:450px">
        任阳持久美妆销货单
        <span style="float: right; font-size: 14px;">电话:138 0374 3156</span>
    </div>
    <div class="user">
        <table class="table">
            <tr>
                <td width="280">地址:<span>{$cus_address}</span></td>
                <td width="180">电话:<span>{$cus_mobile}</span></td>
                <td width="180">日期:<span>{date('Y-m-d',$create_date)}</span></td>
            </tr>
            <tr>
                <td class="bor_bot_none">姓名:<span>{$cus_name}</span></td>
                <td class="bor_bot_none">余额:<span><?php echo $customer_info['balance']>0?$customer_info['balance']:0 ;?></td>
                <td class="bor_bot_none">会员折扣:<span><?php echo $cus_discount==100?'无':$cus_discount.'折' ;?></span></td>
            </tr>
        </table>
    </div>

    <div id="order_info" class="mar_bot">
        <table>
            <thead>
                <tr>
                    {loop $add_info_thead $key $val}
                    <td width={$val['width']}>{$val['name']}</td>
                    {/loop}
                    <td width=90>备注</td>
                </tr>
            </thead>
            <tbody id="product_list">
                <?php if(isset($order_desc)) { $i=1 ;?>
                <?php foreach(json_decode($order_desc) as $key => $val) {;?>
                <tr>
                    <td>{$i}</td>
                    <td>{$val->name}</td>
                    <td>{$val->price}</td>
                    <td>{$val->count}</td>
                    <td>{$val->money}</td>
                    <td></td>
                </tr>
                <?php $i++; } ;?>
                <tr>
                    <td>{$i}</td>
                    <td>快递费</td>
                    <td>{$exp_charge}</td>
                    <td>1</td>
                    <td>{$exp_charge}</td>
                    <td></td>
                </tr>
                <tr>
                    <td>合计</td>
                    <td></td>
                    <td></td>
                    <td>{$pro_count+1}</td>
                    <td>{$price+$exp_charge}</td>
                    <td></td>
                </tr>
                <?php };?>
            </tbody>
        </table>
    </div>

</div>

<!--<div class="mar_bot">
    <span class="btn btn_suc" onclick="javascript:$('#customer_info').jqprint();">打印</span>
</div>-->

